package com.dev.security.manager.beans;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 角色app关联表
 * @author 潜行的青衣
 * @see
 */
@Entity
@Table(name = "t_cds_roleappunit")
public class RoleAppUnit {

	@EmbeddedId
	private RoleAppUnitId id;

	@ManyToOne
	@JoinColumn(name="app_id", insertable=false, updatable=false)
	private App app;
	
	public RoleAppUnitId getId() {
		return id;
	}

	public void setId(RoleAppUnitId id) {
		this.id = id;
	}

	public App getApp() {
		return app;
	}

	public void setApp(App app) {
		this.app = app;
	}
	
}
